<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<title>评价管理</title>
	<% include  ./template/commonCss.ejs %>
	<link href="<%=resUrl%>/css/my/evaluate.css" rel="stylesheet" type="text/css" />
    <% include ./template/commonJs.ejs %>
    <% include ./template/raty.ejs %>
	<% include ./template/chatLister.ejs %>
</head>

<body ontouchstart>
        <% var topTitle = '评价管理';var topReturnType = '' %>
        <% include ./template/topReturn.ejs %>
    <div class="weui-tab" <%if(locals.token && token != ''){%>style="margin-top:0;"<%}%> >
        <div class="tabs">
            <a class="item last current" href="javascript:" data-querytype="1">
                作为买家的评价
                <div class="v-line"></div>
            </a>
            <a class="item last" href="javascript:" data-querytype="2">
                作为卖家的评价
                <div class="v-line"></div>
            </a>
        </div>

        <div id="aroundBox">
            <div class="weui-pull-to-refresh__layer" style="padding: 5px;">
                <div class="weui-pull-to-refresh__arrow"></div>
                <div class="weui-pull-to-refresh__preloader"></div>
                <div class="down">下拉刷新</div>
                <div class="up">释放刷新</div>
                <div class="refresh">正在刷新</div>
            </div>
            <div id="contentTo" >
                <!-- content -->
            </div>
            <div class="weui-loadmore" id="loadmore">
                <i class="weui-loading"></i>
                <span class="weui-loadmore__tips">正在加载</span>
            </div>
            <div class="weui-loadmore weui-loadmore_line" style="display:none;" id="nomore">
                <span class="weui-loadmore__tips">全部加载完毕</span>
            </div>
        </div>
       
    </div>

    <script id="content" type="text/html">
        {{each list}}
        <div class="shoplist-item">
                <div class="shoplist-item-top">	
                    <div class="text">买家评价时间:{{ $value.evaluateDetail.evaluateDate | TimestampToTime}}</div>
                </div>
                <div class="shoplist-item-body">
                    <a href="javascript:visitUrl('/order/detail?id={{$value.id}}',true)">
                        <div class="order-body-let" style="width:1.68rem;height:1.68rem;background: url({{$value.productDetail.coverImage}}?x-oss-process=image/resize,w_500) no-repeat 0 center;background-size: 100% auto;">
                        </div>	
                        <div class="order-body-cen">
                            <div class="order-pro-name">{{$value.productDetail.name}}</div>
                            <div class="evaluate">买家评价:{{$value.evaluateDetail.content}}</div>

                            <div class="eva" title="regular">
                                <img alt="1" src="lib/raty/images/{{$value.evaluateDetail.level >= 1 ? 'star-on.png':'star-off.png'}}" title="regular">
                                <img alt="2" src="lib/raty/images/{{$value.evaluateDetail.level >= 2 ? 'star-on.png':'star-off.png'}}" title="regular">
                                <img alt="3" src="lib/raty/images/{{$value.evaluateDetail.level >= 3 ? 'star-on.png':'star-off.png'}}" title="regular">
                                <img alt="4" src="lib/raty/images/{{$value.evaluateDetail.level >= 4 ? 'star-on.png':'star-off.png'}}" title="regular">
                                <img alt="5" src="lib/raty/images/{{$value.evaluateDetail.level >= 5 ? 'star-on.png':'star-off.png'}}" title="regular">
                            </div>
                           

                             
                        </div>	
                        <!-- <div class="order-body-rig">
                            <div class="price">￥{{$value.productDetail.name}}</div>
                            <div class="order-pro-number">x1</div>
                        </div>	 -->
                    </a>
                    <div class="auto-height"></div>
                </div>
            </div>
           
        {{/each}}
        
    </script>
    <script type="text/javascript" src="<%=resUrl%>/js/evaluate.js"></script>
</body>
</html>